import Main from "@/layout/Main.vue";

export default [
  {
    path: "/emsModule",
    name: "emsModule",
    meta: {
      title: "机构管理"
    },
    component: Main,
    children: [
      {
        // 公司列表
        path: "/organization-company",
        name: "organization-company",
        meta: {
          title: "公司列表"
        },
        component: () => import("@/views/EMSModule/OrganizationCompany")
      },
      {
        // 门店列表
        path: "/organization-shop",
        name: "organization-shop",
        meta: {
          title: "门店列表"
        },
        component: () => import("@/views/EMSModule/OrganizationShop")
      },
      {
        // 供应商列表
        path: "/organization-supplier",
        name: "organization-supplier",
        meta: {
          title: "供应商列表"
        },
        component: () => import("@/views/EMSModule/OrganizationSupplier")
      },
      {
        // 品牌列表
        path: "/products-brand",
        name: "products-brand",
        meta: {
          title: "品牌列表"
        },
        component: () => import("@/views/EMSModule/ProductsBrand")
      },
      {
        // 会员列表
        path: "/users-list",
        name: "users-list",
        meta: {
          title: "会员列表"
        },
        component: () => import("@/views/EMSModule/UsersList")
      },
      {
        // 商品列表
        path: "/products-list",
        name: "products-list",
        meta: {
          title: "商品列表"
        },
        component: () => import("@/views/EMSModule/ProductsList")
      },
      {
        // 商品分类
        path: "/products-cagetory",
        name: "products-cagetory",
        meta: {
          title: "商品分类"
        },
        component: () => import("@/views/EMSModule/ProductsCagetory")
      },
      {
        // 商品新建编辑
        path: "/productList-jump/:id",
        name: "productList-jump",
        component: () =>
          import("@/views/EMSModule/ProductsList/ProductListJump")
      },
      {
        // 商品规格
        path: "/productList-norm/:id/:sku",
        name: "productList-norm",
        component: () =>
          import("@/views/EMSModule/ProductsList/ProductListNorm")
      },
      {
        // 采购单列表
        path: "/purchase-list",
        name: "purchase-list",
        meta: {
          title: "采购单列表"
        },
        component: () => import("@/views/EMSModule/PurchaseList")
      },
      {
        // 采购单明细
        path: "/purchaseList-detail/:id/:code/:type",
        name: "purchaseList-detail",
        component: () =>
          import("@/views/EMSModule/PurchaseList/PurchaseListDetail")
      },
      {
        // 我的审批
        path: "/flow-wait",
        name: "flow-wait",
        meta: {
          title: "我的审批"
        },
        component: () => import("@/views/EMSModule/FlowWait")
      },
      {
        // 我的申请
        path: "/flow-apply",
        name: "flow-apply",
        meta: {
          title: "我的申请"
        },
        component: () => import("@/views/EMSModule/FlowApply")
      },
      {
        // 审批列表
        path: "/flow-history",
        name: "flow-history",
        meta: {
          title: "审批列表"
        },
        component: () => import("@/views/EMSModule/FlowHistory")
      },
      {
        // 配送单列表
        path: "/purchase-delivery",
        name: "purchase-delivery",
        meta: {
          title: "配送单"
        },
        component: () => import("@/views/EMSModule/PurchaseDelivery")
      },
      {
        // 采购入库
        path: "/purchase-instore",
        name: "purchase-instore",
        meta: {
          title: "采购入库"
        },
        component: () => import("@/views/EMSModule/PurchaseInstore")
      },
      {
        // 进货批次
        path: "/purchase-batch",
        name: "purchase-batch",
        meta: {
          title: "进货批次"
        },
        component: () => import("@/views/EMSModule/PurchaseBatch")
      },
      {
        //限时促销
        path: "/marketing-products",
        name: "marketing-products",
        meta: {
          title: "限时促销"
        },
        component: () => import("@/views/EMSModule/MarketingProducts")
      },
      {//添加限时促销商品
        //限时促销
        path: "/marketingProducts-add:id",
        name: "marketingProducts-add",
        meta: {
          title: "添加限时促销商品"
        },
        component: () => import("@/views/EMSModule/MarketingProducts/MarketingProductsAdd")
      },
      {
        //订单活动
        path: "/marketing-orders",
        name: "marketing-orders",
        meta: {
          title: "订单活动"
        },
        component: () => import("@/views/EMSModule/MarketingOrders")
      },
      {
        //红包活动
        path: "/marketing-redcard",
        name: "marketing-redcard",
        meta: {
          title: "红包活动"
        },
        component: () => import("@/views/EMSModule/MarketingRedcard")
      }
    ]
  }
];
